package com.dkd.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dkd.system.mapper.SystemTaskDetailsMapper;
import com.dkd.system.domain.SystemTaskDetails;
import com.dkd.system.service.ITaskDetailsService;

/**
 * 工单详情Service业务层处理
 * 
 * @author itxiaoliang
 * @date 2025-08-30
 */
@Service
public class systemTaskDetailsServiceImpl implements ITaskDetailsService
{
    @Autowired
    private SystemTaskDetailsMapper systemTaskDetailsMapper;

    /**
     * 查询工单详情
     * 
     * @param detailsId 工单详情主键
     * @return 工单详情
     */
    @Override
    public SystemTaskDetails selectTaskDetailsByDetailsId(Long detailsId)
    {
        return systemTaskDetailsMapper.selectTaskDetailsByDetailsId(detailsId);
    }

    /**
     * 查询工单详情列表
     * 
     * @param systemTaskDetails 工单详情
     * @return 工单详情
     */
    @Override
    public List<SystemTaskDetails> selectTaskDetailsList(SystemTaskDetails systemTaskDetails)
    {
        return systemTaskDetailsMapper.selectTaskDetailsList(systemTaskDetails);
    }

    /**
     * 新增工单详情
     * 
     * @param systemTaskDetails 工单详情
     * @return 结果
     */
    @Override
    public int insertTaskDetails(SystemTaskDetails systemTaskDetails)
    {
        return systemTaskDetailsMapper.insertTaskDetails(systemTaskDetails);
    }

    /**
     * 修改工单详情
     * 
     * @param systemTaskDetails 工单详情
     * @return 结果
     */
    @Override
    public int updateTaskDetails(SystemTaskDetails systemTaskDetails)
    {
        return systemTaskDetailsMapper.updateTaskDetails(systemTaskDetails);
    }

    /**
     * 批量删除工单详情
     * 
     * @param detailsIds 需要删除的工单详情主键
     * @return 结果
     */
    @Override
    public int deleteTaskDetailsByDetailsIds(Long[] detailsIds)
    {
        return systemTaskDetailsMapper.deleteTaskDetailsByDetailsIds(detailsIds);
    }

    /**
     * 删除工单详情信息
     * 
     * @param detailsId 工单详情主键
     * @return 结果
     */
    @Override
    public int deleteTaskDetailsByDetailsId(Long detailsId)
    {
        return systemTaskDetailsMapper.deleteTaskDetailsByDetailsId(detailsId);
    }
}
